<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>诗韵雅集 - 古典诗词鉴赏</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', '微软雅黑', sans-serif;
        }

        body {
            background: #f5f5f5;
            color: #333;
        }

        /* 导航栏 */
        .navbar {
            background: rgba(255, 255, 255, 0.95);
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            padding: 1rem 5%;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.8rem;
            color: #2c3e50;
            font-family: '楷体', cursive;
            text-decoration: none;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
        }

        .nav-links a {
            text-decoration: none;
            color: #34495e;
            font-weight: 500;
            transition: color 0.3s;
        }

        .nav-links a:hover {
            color: #e74c3c;
        }

        /* 主页内容 */
        .container {
            max-width: 1200px;
            margin: 80px auto 0;
            padding: 2rem;
        }

        /* 搜索栏 */
        .search-container {
            text-align: center;
            margin: 3rem 0;
        }

        .search-box {
            width: 60%;
            max-width: 600px;
            padding: 1rem;
            border: 2px solid #bdc3c7;
            border-radius: 30px;
            font-size: 1.1rem;
            outline: none;
            transition: border-color 0.3s;
        }

        .search-box:focus {
            border-color: #e74c3c;
        }

        /* 分类板块 */
        .category-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin: 3rem 0;
        }

        .category-card {
            background: white;
            padding: 2rem;
            border-radius: 10px;
            text-align: center;
            transition: transform 0.3s;
            cursor: pointer;
            box-shadow: 0 3px 15px rgba(0,0,0,0.1);
        }

        .category-card:hover {
            transform: translateY(-5px);
        }

        /* 每日推荐 */
        .daily-poem {
            background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
            border-radius: 15px;
            padding: 2rem;
            color: white;
            margin: 3rem 0;
            position: relative;
            overflow: hidden;
        }

        .poem-content {
            position: relative;
            z-index: 1;
            line-height: 1.8;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .search-box {
                width: 90%;
            }

            .category-grid {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <nav class="navbar">
        诗韵雅集
        <div class="nav-links">
            首页
            分类
            关于
        </div>
    </nav>

    <div class="container">
        <div class="search-container">
            <input type="text" class="search-box" placeholder="输入诗句、作者或关键词...">
        </div>

        <div class="category-grid">
            <div class="category-card">
                <h3>唐诗精选</h3>
                <p>感受盛唐气象</p >
            </div>
            <div class="category-card">
                <h3>宋词经典</h3>
                <p>品味婉约豪放</p >
            </div>
            <div class="category-card">
                <h3>古文观止</h3>
                <p>领略文章之美</p >
            </div>
        </div>

        <div class="daily-poem">
            <div class="poem-content">
                <h2>今日推荐 · 《将进酒》</h2>
                <p>君不见黄河之水天上来，奔流到海不复回。</p >
                <p>君不见高堂明镜悲白发，朝如青丝暮成雪。</p >
                <p style="text-align: right;">—— 李白</p >
            </div>
        </div>
    </div>

    <script>
        // 简单的交互效果
        document.querySelectorAll('.category-card').forEach(card => {
            card.addEventListener('click', () => {
                alert('正在加载分类内容...');
            });
        });

        // 搜索功能
        document.querySelector('.search-box').addEventListener('keypress', (e) => {
            if (e.key === 'Enter') {
                const keyword = e.target.value;
                if (keyword.trim()) {
                    alert(`执行搜索：${keyword}`);
                    // 这里可以添加实际的搜索逻辑
                }
            }
        });

        // 移动端菜单切换
        window.addEventListener('resize', () => {
            const navLinks = document.querySelector('.nav-links');
            if (window.innerWidth > 768) {
                navLinks.style.display = 'flex';
            } else {
                navLinks.style.display = 'none';
            }
        });
    </script>
</body>
</html>